package com.example.demo6.demos.controller;

import com.example.demo6.demos.common.Result;
import com.example.demo6.demos.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @Autowired
    private IndexService indexService;

    @GetMapping("/index")
    public Result index (){
        return Result.success(indexService.index());
    }

}
